package database

import (
	"time"

	"gorm.io/gorm"
)

type Base struct {
	ID         uint           `json:"id,omitempty" gorm:"column:id;type:int;primaryKey;autoIncrement"`
	CreateTime time.Time      `json:"create_time,omitempty" gorm:"autoCreateTime"`
	UpdateTime time.Time      `json:"update_time,omitempty" gorm:"autoUpdateTime"`
	DeletedAt  gorm.DeletedAt `json:"-" gorm:"index"`
	Sort       int            `json:"sort"`
}
